package com.maple.sql;

import javax.persistence.Table;

public class SqlUtilsw {
	  public static String getTableName(Class c) {
		  Table annotation = (Table) c.getAnnotation(Table.class);
		  String tableName="";
		  if(annotation==null)
		  {
			  tableName=c.getSimpleName();
		  }else
		  {
			  tableName=annotation.name();
		  }
		  return tableName;
	   }
}
